package com.chinatelecom.ifree.business.domain.jifen;

import java.io.Serializable;
import java.util.Date;

/**
 * 动作
 * @author haoxw
 *
 */
public class BonusAction implements Serializable {
	private static final long serialVersionUID = 1L;
	private int aId;
	/**
	 * 动作名称
	 */
	private String name;
	/**
	 *  描述
	 */
	private String description;
	/**
	 *  是否有效
	 */
	private boolean status;
	/**
	 * 每天该动作上限 
	 */
	private int maxTimesPerDay;

	/**
	 * 积分计算方式：变更固定值|变更输入值 
	 * 0 - oldValue + defaultValue 
	 * 1 - oldValue + inputValue
	 */
	private int bonusCalcType;
	/**
	 * 增加固定值时，每次增加这个指定值
	 */
	private int bonusDefaultValue;

	/**
	 * 积分变更类型:0增加| 1扣除 | 2返还
	 */
	private int bonusChangeType;
	/**
	 * 验证码
	 */
	private String validationCode;
	/**
	 * 最后更新时间
	 */
	private Date upTime;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getMaxTimesPerDay() {
		return maxTimesPerDay;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public void setMaxTimesPerDay(int maxTimesPerDay) {
		this.maxTimesPerDay = maxTimesPerDay;
	}
	public int getBonusCalcType() {
		return bonusCalcType;
	}
	public void setBonusCalcType(int bonusCalcType) {
		this.bonusCalcType = bonusCalcType;
	}
	public int getBonusDefaultValue() {
		return bonusDefaultValue;
	}
	public void setBonusDefaultValue(int bonusDefaultValue) {
		this.bonusDefaultValue = bonusDefaultValue;
	}
	public int getBonusChangeType() {
		return bonusChangeType;
	}
	public void setBonusChangeType(int bonusChangeType) {
		this.bonusChangeType = bonusChangeType;
	}
	public String getValidationCode() {
		return validationCode;
	}
	public void setValidationCode(String validationCode) {
		this.validationCode = validationCode;
	}
	public Date getUpTime() {
		return upTime;
	}
	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}
	@Override
	public String toString() {
		return "Action [aId=" + aId + ", name=" + name + ", description="
				+ description + ", status=" + status + ", maxTimesPerDay="
				+ maxTimesPerDay + ", bonusCalcType=" + bonusCalcType
				+ ", bonusDefaultValue=" + bonusDefaultValue
				+ ", bonusChangeType=" + bonusChangeType + ", validationCode="
				+ validationCode + ", upTime=" + upTime + "]";
	}
	public int getaId() {
		return aId;
	}
	public void setaId(int aId) {
		this.aId = aId;
	}


	
}